/*
 * @Author: 谢陈洁
 * @Date: 2025-06-19 08:52:51
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-07-18 15:43:07
 * @Description: file content
 */
import { post } from "@/services/request/http"

export const getRoleList = (data: Record<string, string> = {}): Promise<any> => { // 获取角色列表
  return post('/role/list', data)
}

export const saveRole = (data: Record<string, any>): Promise<any> => { // 保存角色
  return post('/role/save', data)
}

export const deleteRole = (id: string | number): Promise<any> => { // 删除角色
  return post('/role/delete', { id })
}
